<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "admin_jurisdiction".
 *
 * @property int $id
 * @property string $name 权限名称
 * @property int $level 权限级别
 * @property string $route 权限路由
 */
class AdminJurisdiction extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'admin_jurisdiction';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['level'], 'integer'],
            [['name', 'route'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'level' => 'Level',
            'route' => 'Route',
        ];
    }
}
